#coding:utf-8

from Matrix import Matrix

# 测试脚本
def test():

    print('-----------------------');
    print('-       矩阵乘法      -');
    print('-----------------------');


    m1 = Matrix([1,0,0],[0,1,0],[0,0,1]).mul(2)
    m2 = Matrix([1],[2],[3])

    print(m1);
    print('\n');
    print(m2);
    print('\n');
    print(m1.mul(m2));


    print('\n-----------------------');
    print('-       矩阵求逆      -');
    print('-----------------------');

    mr = Matrix(
        [3,2,19],
        [6,8,11],
        [5,7,1])

    # print(mr.det())

    pass

if __name__=='__main__':
    import sys
    test()